//
//  STMRootViewController.m
//  StoreManagement
//
//  Created by centling on 16/5/11.
//  Copyright © 2016年 alfred. All rights reserved.
//

#import "STMRootViewController.h"

@interface STMRootViewController ()

@end

@implementation STMRootViewController

- (void)viewDidLoad {
    [super viewDidLoad];
}

- (void)viewWillDisappear:(BOOL)animated {
    [super viewWillDisappear:animated];
    [SVProgressHUD dismiss];
}


- (void)customNavigationTitle:(NSString *)title {
    UILabel *titleLabel=[[UILabel alloc] initWithFrame:CGRectMake(0, 0, 100, 40)];
    titleLabel.backgroundColor=[UIColor clearColor];
    titleLabel.textColor=[UIColor darkGrayColor];
    titleLabel.text=title;
    titleLabel.textAlignment=NSTextAlignmentCenter;
    titleLabel.font=[UIFont boldSystemFontOfSize:18];
    self.navigationItem.titleView = titleLabel;
}





- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
